from flask import Blueprint
from flask_restful import Api

blueprint = Blueprint('admin', __name__, url_prefix='/api/admin')
api = Api(blueprint)

# need import Resource to here
from .token import TokenView
from .user import UsersView, UserView

api.add_resource(TokenView, '/token')
api.add_resource(UsersView, '/users')
api.add_resource(UserView, '/users/<int:user_id>')
